package com.zby.big_event_zby.mapper;

import com.zby.big_event_zby.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @version 1.0
 * @auther ZBY
 */
@Mapper
public interface LoginMapper {
//    @Select("select * from user where username = #{username}")
//    User findByUsername(String username);
    @Select("select * from user where username = #{username} and password = #{password}")
    User login(String username, String password);
}
